import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';

class NotFound extends StatelessWidget {
  final Widget? child;
  const NotFound({super.key, this.child});

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Lottie.asset("assets/lottie/NotFound.json"),
        Container(
            padding: const EdgeInsets.only(top: 10),
            child: child ?? const SizedBox.shrink())
      ],
    );
  }
}
